package dao

import (
	"time"
)

// 这是 LiFullDiscount 的全局公开dao对象
var LiFullDiscountDao = liFullDiscountDao{}

// 这是 li_full_discount表 的实体类
type LiFullDiscount struct {
	Id              int       `json:"id" form:"id" v:"id"`                                             // ID
	CreateBy        string    `json:"create_by" form:"create_by" v:"create_by"`                        // 创建者
	CreateTime      time.Time `json:"create_time" form:"create_time" v:"create_time"`                  // 创建时间
	DeleteFlag      bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"` // 删除标志 true/false 删除/未删除
	UpdateBy        string    `json:"update_by" form:"update_by" v:"update_by"`                        // 更新者
	UpdateTime      time.Time `json:"update_time" form:"update_time" v:"update_time"`                  // 更新时间
	EndTime         time.Time `json:"end_time" form:"end_time" v:"end_time"`                           // 活动结束时间
	PromotionName   string    `json:"promotion_name" form:"promotion_name" v:"promotion_name"`         // 活动名称
	PromotionStatus string    `json:"promotion_status" form:"promotion_status" v:"promotion_status"`   // 活动状态
	StoreId         string    `json:"store_id" form:"store_id" v:"store_id"`                           // 店铺ID
	StoreName       string    `json:"store_name" form:"store_name" v:"store_name"`                     // 店铺名称
	StartTime       time.Time `json:"start_time" form:"start_time" v:"start_time"`                     // 活动开始时间
	CouponId        string    `json:"coupon_id" form:"coupon_id" v:"coupon_id"`                        // 优惠券ID
	Description     string    `json:"description" form:"description" v:"description"`                  // 活动说明
	FullMinus       float64   `json:"full_minus" form:"full_minus" v:"full_minus"`                     // 减现金
	FullMoney       float64   `json:"full_money" form:"full_money" v:"full_money"`                     // 优惠门槛金额
	FullRate        float64   `json:"full_rate" form:"full_rate" v:"full_rate"`                        // 打折
	GiftId          string    `json:"gift_id" form:"gift_id" v:"gift_id"`                              // 赠品ID
	IsCoupon        bool      `json:"is_coupon" form:"is_coupon" v:"is_coupon"`                        // 是否赠优惠券
	IsFreeFreight   bool      `json:"is_free_freight" form:"is_free_freight" v:"is_free_freight"`      // 是否包邮
	IsFullMinus     bool      `json:"is_full_minus" form:"is_full_minus" v:"is_full_minus"`            // 活动是否减现金
	IsFullRate      bool      `json:"is_full_rate" form:"is_full_rate" v:"is_full_rate"`               // 是否打折
	IsGift          bool      `json:"is_gift" form:"is_gift" v:"is_gift"`                              // 是否有赠品
	IsPoint         bool      `json:"is_point" form:"is_point" v:"is_point"`                           // 是否赠送积分
	Point           int       `json:"point" form:"point" v:"point"`                                    // 赠送多少积分
	Title           string    `json:"title" form:"title" v:"title"`                                    // 活动标题

}

// 注意:这是 LiFullDiscount 的私有dao对象
type liFullDiscountDao struct {
	Insert func(arg LiFullDiscount) int            //插入一条记录
	Update func(arg LiFullDiscount) int            //更新一条记录
	Delete func(arg LiFullDiscount) int            //删除一条记录
	Select func(arg LiFullDiscount) LiFullDiscount //获取一条记录
}
